package com.huoyun.car.service;

import com.huoyun.car.bean.CarLicense;
import com.huoyun.car.dao.CarLicenseDao;

public class CarLicenseServiceImpl implements CarLicenseService {

	private CarLicenseDao carLicenseDao;
	
	public void saveCarLicense(CarLicense carLicense) 
	{
		carLicenseDao.saveCarLicense(carLicense);
	}


	public void update(CarLicense carLicense) 
	{
		carLicenseDao.update(carLicense);
	}

	
	public CarLicense getCarLicenseById(int id) 
	{
		return carLicenseDao.getCarLicenseById(id);
	}

	
	public void delete(int id) 
	{
		carLicenseDao.delete(id);
	}

	public CarLicenseDao getCarLicenseDao() {
		return carLicenseDao;
	}

	public void setCarLicenseDao(CarLicenseDao carLicenseDao) {
		this.carLicenseDao = carLicenseDao;
	}

}